package com.exchange.entity.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author : RulerWood
 * @Data : 2024/4/26 - 15:57
 */
@Data
public class MyWalletVo implements Serializable {
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long wid;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long ptid;

    /**
     * 电压外键
     */
    @TableField(value = "vid")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long vid;

    /**
     * 套餐时长外键
     */
    @TableField(value = "patid")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long patid;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date expirationTime;

    private Integer status;



    private String typeName;


    private String voltageName;


    private String packageName;

}
